/*
 * @Author: your name
 * @Date: 2021-06-03 23:02:14
 * @LastEditTime: 2021-06-03 23:04:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /qiankun/qiankun-vue/vue.config.js
 */
const { name } = require("./package");
module.exports = {
  devServer: {
    port: 2000,
    open: true,
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
  },
  configureWebpack: {
    output: {
      library: `${name}-[name]`,
      libraryTarget: "umd", // 把微应用打包成 umd 库格式
      jsonpFunction: `webpackJsonp_${name}`,
    },
  },
};
